package com.cowain.monitor.dao;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.cowain.monitor.entity.ErpCompleteEntity;
import com.cowain.monitor.entity.PmsCheckDemandEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * PMS ehr-backend
 *
 * @Classname PmsCheckDemandDao
 * @Description TODO
 * @Date 2020-07-28 13:42
 * @Created 沈科举
 */
@Mapper
public interface PmsCheckDemandDao extends BaseMapper<ErpCompleteEntity> {


    /**
     * 查询所有未读信息
     * @param pageIndex
     * @return
     */
    List<ErpCompleteEntity> findErpCmpleteEntityByIsdel(@Param("pageIndex") Integer pageIndex);

    /**
     * 查询没有读的数据总条数
     * @return
     */
    int totalCount();

    /**
     * 添加到成品入库表
     * @param pmsCheckDemandEntity
     * @return
     */
    int addPmsCheckDemand(List<PmsCheckDemandEntity> pmsCheckDemandEntity);

    /**
     * 根据id修改已读状态
     * @param erpCompleteEntity
     * @return
     */
    int updateErpCompleteEntityIsdel(ErpCompleteEntity erpCompleteEntity);







}
